package com.cqemme.comm.enums;


import java.util.HashMap;
import java.util.Map;

/**s
 * @author amkj
 */

public enum DeviceMessage {

    /**
     * 省教委
     */

    FIRE_ALARM( 34,14),
    B_DEVICE_ALARM( 55,6)
    ;

    private final int deviceType;
    private final int messageType;


    DeviceMessage(int deviceType, int messageType ){
        this.deviceType = deviceType;
        this.messageType = messageType;
    }


    public int getDeviceType() {
        return deviceType;
    }

    public int getMessageType() {
        return messageType;
    }

    public static Map<Integer,Integer> getMap() {
        Map<Integer,Integer> map=new HashMap<Integer,Integer>();
        DeviceMessage[] p = values();
        for (DeviceMessage type : p) {
            map.put(type.getDeviceType(), type.getMessageType());
        }
        return map;
    }


}
